package com.dragon.modules.yuegou.mapper.wallet;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dragon.modules.yuegou.entity.wallet.MerchantWithdrawEntity;
import com.dragon.modules.yuegou.model.wallet.MerchantWithdraw;
import com.dragon.modules.yuegou.query.wallet.WithdrawQuery;
import com.dragon.modules.yuegou.response.WithdrawCheck;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;

/**
 * 商户提现 Mapper接口
 *
 * @author pbuilder generated
 * @date 2019-05-08 16:00:31
 * @version 2.0
 */
@Component("waltMerchantWithdrawMapper")
public interface MerchantWithdrawMapper extends BaseMapper<MerchantWithdrawEntity> {

	/**
	 * 查询商户月提现总额
	 * */
	BigDecimal withdrawTotal(@Param("id") String id,@Param("yearMonth") String yearMonth);

	/**
	 * 提现查询
	 * @param page
	 * @param withdrawQuery
	 * @return
	 */
	IPage<MerchantWithdraw> searchWithdraw(IPage page, @Param("query") WithdrawQuery withdrawQuery);

	/**
	 * 提现审核查询
	 *
	 * @param page
	 * @param withdrawQuery
	 * @return
	 */
	IPage<WithdrawCheck> searchCheckWithdraw(IPage page, @Param("query") WithdrawQuery withdrawQuery);


	List<WithdrawCheck> searchCheckWithdraw(@Param("query") WithdrawQuery withdrawQuery);
}
